package com.kunlun.system.service.impl;

import com.kunlun.system.dao.ISystemInstanceDao;
import com.kunlun.system.model.SystemInstanceModel;
import com.kunlun.system.service.ISystemInstanceService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class SystemInstanceService implements ISystemInstanceService {

    private static Logger log = LogManager.getLogger();

    @Autowired
    private ISystemInstanceDao systemInstanceDao;

    @Override
    public void addSystemInstance(List<SystemInstanceModel> monitorModels) throws Exception {
        systemInstanceDao.addSystemInstance(monitorModels);
    }
}
